# -*- coding: utf-8 -*-

from marshmallow import fields

from odoo_contrib.parser import ParserBase
from odoo_contrib.marshmallow import fields as contrib_fields


class ExhibitRepositorySchema(ParserBase):
    page = fields.Integer(missing=0)
    enabled_only = fields.Boolean(missing=True, data_key='enabledOnly')
    categories = contrib_fields.List(fields.Integer, missing=[], data_key='categoryId')
    q = contrib_fields.Str(missing=None)
